﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Common;

namespace ElectrosLtdApplication.Models
{
    public class HomeModel
    {
        public int CategoryID { get; set; }
        public string ProductName { get; set; }
        public SelectList Categories { get; set; }

        IList<ProductCategory> categories = new ProductsServ.ProductsServiceClient().GetCategories();

        public HomeModel()
        {
            Categories = new SelectList(categories, "CategoryID", "Category");
        }
    }
}